package com.hopu.blb_erp.mapper;

import com.hopu.blb_erp.entity.Order;
import com.hopu.blb_erp.entity.Order2;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hopu.blb_erp.entity.Order2ToBeProduced;
import org.apache.ibatis.annotations.Param;

import java.util.List;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author A-Zhang
 * @since 2021-11-18
 */
public interface Order2Mapper extends BaseMapper<Order2> {
    List<Order2ToBeProduced> selectLimit(@Param("start") int start, @Param("length") int length, @Param("orderId") String orderId, @Param("dealTime") String dealTime);

    Integer selectOrderCount(@Param("orderId") String orderId, @Param("dealTime") String dealTime);
    /**
     * 查询待生产订单
     */
    //分页查询
    Integer selectAllCount();
    List<Order2> selectPage(@Param("start")Integer start,@Param("length")Integer length);
    //添加激光码
    void insertOrder2(Order2 Order2);
    //批量删除激光码
    void deleteOrder2(List<Integer> ids);
    //更改激光码
    void updateOrder2(String orderId);
    //添加祖码
    void updateZumaid(String  orderId, String zumaid);
    //
    //根据orderid查询激光码
    Order2 selectOrder2ByOrderId(String orderId);
//
    //分页查询
    int selectPCount();
    List<Order2> selectPPage(@Param("start") Integer start, @Param("length")Integer length);
}
